Skip to content

JSON API, flask server#24

Merged
bmaranville merged 72 commits intopython-periodictable:masterfrom
bmaranville:deduplicate-html
Mar 3, 2026
Merged

JSON API, flask server#24
bmaranville merged 72 commits intopython-periodictable:masterfrom
bmaranville:deduplicate-html

Conversation

@bmaranville
Copy link
Contributor

This PR:

  • replaces the cgi_call function that works directly with a CGI request object, with a dict-based api_call function
  • removes the CGI demo server
  • adds a Flask demo server
  • replaces duplicate HTML files with a single index_template.html
    • rendered with built-in renderer in flask server
    • rendered with sed statements in deploy.sh script

Copy link
Contributor

@pkienzle pkienzle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both the flask version and the pyodide version work. Need to update the readme and fix the sed commands in deploy_calculator.sh before merging.

I didn't test the deploy workflow.

@pkienzle
Copy link
Contributor

Add activation/pyodide and activation/periodictable_wheel_name.txt to .gitignore.

@pkienzle
Copy link
Contributor

Help needs updating. The changes are in #22 but I doubt it will merge cleanly after the reshuffle.

@bmaranville
Copy link
Contributor Author

Help needs updating. The changes are in #22 but I doubt it will merge cleanly after the reshuffle.

Yes, I had to merge the changes in manually. But it's done.

@bmaranville bmaranville requested a review from pkienzle March 3, 2026 16:19
@bmaranville bmaranville merged commit 3c49f58 into python-periodictable:master Mar 3, 2026
@bmaranville bmaranville deleted the deduplicate-html branch March 3, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants